﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DataManager;
using HRMS_Model;


namespace HRMS.Controllers
{
    public class Clients
    {

        public static void AddClient(Client client)
        {
            using (var clientEntity = new HRMSEntities())
            {
                clientEntity.Clients.AddObject(client);
                clientEntity.SaveChanges();
            }
        }

         public static List<Client> GetClients()
        {
            using (var clientEntity = new HRMSEntities())
            {
              return  clientEntity.Clients.ToList();
            }
        }

        }
    }


